package com.hotel_management_backstage.lin.service;

import com.hotel_management_backstage.lin.dao.SysResidentMapper;
import com.hotel_management_backstage.lin.entity.SysResident;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysResidentService {
    @Autowired
    private SysResidentMapper sysResidentMapper;

    public SysResident selectById(Integer id) {
        return sysResidentMapper.selectById(id);
    }

    public List<SysResident> selectAll(){
        return sysResidentMapper.selectAll();
    }

    public void insertResident(SysResident sysResident){
        sysResidentMapper.insertResident(sysResident);
    }

    public void deleteResidentById(int id){
        sysResidentMapper.deleteResidentById(id);
    }

    public void updateResident(SysResident sysResident){
        sysResidentMapper.updateResident(sysResident);
    }
}
